package com.siyu.Controller;

import com.siyu.model.Student;
import com.siyu.fegin.StudentInter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author BrandController
 * @Description 类中文描述
 * @Date 2024/12/9
 **/
@RestController
@RequestMapping("brand")
public class BrandController {
    @Autowired
    private StudentInter studentInter;

    @GetMapping("list")
    public String getBrand(){
        return "huawei";
    }

    @GetMapping("student")
    public List<Student> getStudent(){
        return studentInter.getStudent();
    }
}